libxenlight: initialize domid to -1 in domain_create
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 8 Jan 2010 11:48:36 +0000 (11:48 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 8 Jan 2010 11:48:36 +0000 (11:48 +0000)
commitcb50fe8f529a3219357df4927e848e7673b10be6
tree6f1a95b7242ff75b2c4a3a725a7265a06dc5e5f7
parent718090f23e957e10c09dbd804859554fa1eb91b7
libxenlight: initialize domid to -1 in domain_create

prevent call site that doesn't check return values to try to do
operation on domain 0.
instead they use domid -1, which is unlikely to exist.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
tools/libxl/libxl.c